package com.hotelManagerSystem.mapper;

import com.hotelManagerSystem.model.DepartmentStaff;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author treasy
 * @since 2021-12-22
 */
public interface DepartmentStaffMapper extends BaseMapper<DepartmentStaff> {

    @Update("update department_staff set department_id=#{departmentId} where staff_id=#{staffId}")
    boolean updateDepartmentIdByStaffId(DepartmentStaff departmentStaff);
}
